package com.zut.service;

import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zut.mapper.UserMapper;
import com.zut.pojo.User;



@Service("UserService")
public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper mapper;
	public List<User>findUser(){
		List<User>list=mapper.findUserAll();
		return list;
	}
	public User findUserById(int id){
		User user=mapper.findUserById(id);
		return user;
	}
	public int updateUserById(User user){
		int i=mapper.updateUserById(user);
		return i;
	}
}
